import ImagePicker from 'react-native-image-crop-picker'

export default function myImagePicker(
    fn = () => {},
    params = {
        type: 'image',
        cropping: false,
        multiple: false,
    }
) {
    ImagePicker.openPicker(params)
        .then((v) => {
            fn(v.path)
        })
        .catch((e) => {
            console.log(e)
        })
}
